package com.travel.ticket.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.travel.common.to.TicketTo;
import com.travel.common.utils.PageUtils;
import com.travel.ticket.entity.CollectionEntity;

import java.util.List;
import java.util.Map;

/**
 * 
 *
 * @author lxw
 * @email lxw@gmail.com
 * @date 2024-01-20 10:00:46
 */
public interface CollectionService extends IService<CollectionEntity> {

    PageUtils queryPage(Map<String, Object> params);

    Boolean isCollection(Integer spuId, Integer userId);

    void saveCollection(Integer spuId, Integer userId);

    void deleteCollection(Integer spuId, Integer userId);

    List<TicketTo> getMyTicketCollection(Long memberId);
}

